<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
	.KEYW {color: #933;}
	.COMM {color: #bbb; font-style: italic;}
	.NUMB {color: #393;}
	.STRN {color: #393;}
	.REGX {color: #339;}
	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
	</style></head><body><pre><span class='line'>  1</span> <span class="COMM">/**
<span class='line'>  2</span>  * @fileOverview 홈의 컨텐츠를 구성
<span class='line'>  3</span>  * @author oz_moon
<span class='line'>  4</span>  */</span><span class="WHIT">
<span class='line'>  5</span> </span><span class="NAME">nhn</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">window.nhn</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>  6</span> </span><span class="NAME">nhn.newsstand</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">nhn.newsstand</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>  7</span> </span><span class="NAME">nhn.newsstand.home</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">nhn.newsstand.home</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>  8</span> </span><span class="NAME">nhn.newsstand.home.ContentLoader</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$Class</span><span class="PUNC">(</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>  9</span> </span><span class="WHIT">	</span><span class="WHIT">
<span class='line'> 10</span> </span><span class="WHIT">	</span><span class="COMM">/** @lends nhn.newsstand.home.ContentLoader.prototype */</span><span class="WHIT">
<span class='line'> 11</span> </span><span class="WHIT">	</span><span class="WHIT">
<span class='line'> 12</span> </span><span class="WHIT">	</span><span class="COMM">/**
<span class='line'> 13</span> 	 * nhn.newsstand.home.ContentLoader 클래스의 인스턴스를 생성한다.  
<span class='line'> 14</span> 	 * @constructs
<span class='line'> 15</span> 	 * @class 홈의 컨텐츠를 구성
<span class='line'> 16</span> 	 * &lt;br/>- 오늘의 신문영역의 1면 목록 구성
<span class='line'> 17</span> 	 * &lt;br/>- 주제별 보기영역 지면 목록 구성
<span class='line'> 18</span> 	 * &lt;br/>- 핫이슈별 보기영역 기사 목록 구성
<span class='line'> 19</span> 	 * @extends jindo.Component
<span class='line'> 20</span> 	 * @requires nhn.newsstand.home.ContentLoader.oHTML
<span class='line'> 21</span> 	 * @requires window.ImageUrlGenerator
<span class='line'> 22</span> 	 * @example
<span class='line'> 23</span> 	 * var oContent = new nhn.newsstand.home.ContentLoader( oOption );
<span class='line'> 24</span> 	 * 1. oOption => 컨텐츠를 구성하는데 필요한 값 모음
<span class='line'> 25</span> 	 * 1-1. elContainer => 컨텐츠 노출할 기준 엘리먼트
<span class='line'> 26</span> 	 * 1-2. sTemplateKey => 사용할 Template의 key("LISTBYDATE" or "LISTBYSECTION" or "LISTBYHOTNEWS", default:"NO_TEMPLATE")
<span class='line'> 27</span> 	 * 1-3. sThumbnailType => 썸네일 URL을 만드는데 필요한 이미지 key(default:"news")
<span class='line'> 28</span> 	 * 1-4. sThumbnailSize => 썸네일 URL을 만드는데 필요한 이미지 사이즈(default:"255_310")
<span class='line'> 29</span> 	 * @example
<span class='line'> 30</span> 	 * //CustomEvent
<span class='line'> 31</span> 	 * oContent.attach({
<span class='line'> 32</span> 	 *     "completeLoadContent" : function(oCustomEvent){  //컨텐츠 로드 완료시 한번 발생 
<span class='line'> 33</span> 	 *         //oCustomEvent.container => 로드된 컨텐츠를 포함하고 있는 상위 엘리먼트		
<span class='line'> 34</span> 	 *     }
<span class='line'> 35</span> 	 * })
<span class='line'> 36</span> 	 */</span><span class="WHIT">
<span class='line'> 37</span> </span><span class="WHIT">	</span><span class="NAME">$init</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">oOption</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 38</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">oDefaultOption</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 39</span> </span><span class="WHIT">			</span><span class="NAME">sTemplateKey</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"NO_TEMPLATE"</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 40</span> </span><span class="WHIT">			</span><span class="NAME">sThumbnailType</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"news"</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 41</span> </span><span class="WHIT">			</span><span class="NAME">sThumbnailSize</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">"225_310"</span><span class="WHIT">
<span class='line'> 42</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 43</span> </span><span class="WHIT">		</span><span class="NAME">this.option</span><span class="PUNC">(</span><span class="NAME">oDefaultOption</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 44</span> </span><span class="WHIT">		</span><span class="NAME">this.option</span><span class="PUNC">(</span><span class="NAME">oOption</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'> 45</span> </span><span class="WHIT">		</span><span class="NAME">this._welContainer</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">$Element</span><span class="PUNC">(</span><span class="NAME">this.option</span><span class="PUNC">(</span><span class="STRN">"elContainer"</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 46</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 47</span> </span><span class="WHIT">	</span><span class="WHIT">
<span class='line'> 48</span> </span><span class="WHIT">	</span><span class="COMM">/**
<span class='line'> 49</span> 	 * 컨텐츠를 갱신한다.
<span class='line'> 50</span> 	 * @param {Array} aResult 컨텐츠 구성시 사용할 데이터(템플릿에 사용될 데이터)
<span class='line'> 51</span> 	 */</span><span class="WHIT">
<span class='line'> 52</span> </span><span class="WHIT">	</span><span class="NAME">loadContents</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">aResult</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 53</span> </span><span class="WHIT">		</span><span class="NAME">this._aLastResult</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">aResult</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 54</span> </span><span class="WHIT">		</span><span class="WHIT">
<span class='line'> 55</span> </span><span class="WHIT">		</span><span class="NAME">this._addThumbnailProperty</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 56</span> </span><span class="WHIT">		</span><span class="NAME">this._welContainer.html</span><span class="PUNC">(</span><span class="NAME">$Template</span><span class="PUNC">(</span><span class="NAME">this._getTemplate</span><span class="PUNC">(</span><span class="NAME">this.option</span><span class="PUNC">(</span><span class="STRN">"sTemplateKey"</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">process</span><span class="PUNC">(</span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">aData</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">this._aLastResult</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 57</span> </span><span class="WHIT">						</span><span class="WHIT">
<span class='line'> 58</span> </span><span class="WHIT">		</span><span class="NAME">this.fireEvent</span><span class="PUNC">(</span><span class="STRN">"completeLoadContent"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT"> </span><span class="NAME">container</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">this._welContainer.$value</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 59</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">	</span><span class="WHIT">
<span class='line'> 60</span> 
<span class='line'> 61</span> </span><span class="WHIT">	</span><span class="COMM">/**
<span class='line'> 62</span> 	 * 주어진 키에 해당하는 템플릿을 가져온다.
<span class='line'> 63</span> 	 */</span><span class="WHIT">
<span class='line'> 64</span> </span><span class="WHIT">	</span><span class="NAME">_getTemplate</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">sTemplateKey</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 65</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">oHTML</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">nhn.newsstand.home.ContentLoader.oHTML</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 66</span> </span><span class="WHIT">		</span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">oHTML</span><span class="PUNC">[</span><span class="NAME">sTemplateKey</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NAME">oHTML</span><span class="PUNC">[</span><span class="STRN">"NO_TEMPLATE"</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 67</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">	</span><span class="WHIT">
<span class='line'> 68</span> </span><span class="WHIT">	</span><span class="WHIT">
<span class='line'> 69</span> </span><span class="WHIT">	</span><span class="COMM">/**
<span class='line'> 70</span> 	 * 썸네일 이미지 URL 생성하여 템플릿에 사용될 데이터에 추가한다.
<span class='line'> 71</span> 	 */</span><span class="WHIT">
<span class='line'> 72</span> </span><span class="WHIT">	</span><span class="NAME">_addThumbnailProperty</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 73</span> </span><span class="WHIT">		</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">aListData</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this._aLastResult</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 74</span> </span><span class="WHIT">		</span><span class="KEYW">for</span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">nIdx</span><span class="PUNC">=</span><span class="NUMB">0</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">nLen</span><span class="PUNC">=</span><span class="NAME">aListData.length</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">nIdx</span><span class="PUNC">&lt;</span><span class="NAME">nLen</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">nIdx</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 75</span> </span><span class="WHIT">			</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">oItem</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">aListData</span><span class="PUNC">[</span><span class="NAME">nIdx</span><span class="PUNC">]</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 76</span> </span><span class="WHIT">			</span><span class="NAME">oItem.thumbnail</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ImageUrlGenerator</span><span class="PUNC">(</span><span class="NAME">this.option</span><span class="PUNC">(</span><span class="STRN">"sThumbnailType"</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.option</span><span class="PUNC">(</span><span class="STRN">"sThumbnailSize"</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">oItem.pressCd</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">oItem.publDate</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">oItem.publType</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">oItem.editionNo</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">oItem.pageNo</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">oItem.nodeNo</span><span class="PUNC">||</span><span class="KEYW">null</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">createImageUrl</span><span class="PUNC">(</span><span class="NAME">window.NORMAL_URL</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 77</span> </span><span class="WHIT">		</span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 78</span> </span><span class="WHIT">	</span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 79</span> </span><span class="WHIT">	</span><span class="WHIT">
<span class='line'> 80</span> </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">.</span><span class="NAME">extend</span><span class="PUNC">(</span><span class="NAME">jindo.Component</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 81</span> 
<span class='line'> 82</span> </span><span class="NAME">nhn.newsstand.home.ContentLoader.oHTML</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 83</span> </span><span class="WHIT">	</span><span class="STRN">"NO_TEMPLATE"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="STRN">'NO TEMPLATE'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 84</span> </span><span class="WHIT">	</span><span class="WHIT">
<span class='line'> 85</span> </span><span class="WHIT">	</span><span class="STRN">"LISTBYDATE"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="WHIT">          </span><span class="WHIT">
<span class='line'> 86</span> </span><span class="WHIT">    	</span><span class="STRN">'{for idx:data in aData}'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 87</span> </span><span class="WHIT">    	</span><span class="STRN">'&lt;li>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 88</span> </span><span class="WHIT">    		</span><span class="STRN">'&lt;strong class="blind">{=data.pressNm}&lt;/strong>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 89</span> </span><span class="WHIT">    		</span><span class="STRN">'{if !data.volumeId}'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 90</span> </span><span class="WHIT">    			</span><span class="STRN">'&lt;div class="article">'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 91</span> </span><span class="WHIT">    				</span><span class="STRN">'&lt;div class="thmb">&lt;em>&lt;img src="'</span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">ROOT_IMG</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="STRN">'noimg_{=data.pressCd}.gif" width="225" height="310">&lt;/em>&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 92</span> </span><span class="WHIT">    			</span><span class="STRN">'&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 93</span> </span><span class="WHIT">    		</span><span class="STRN">'{else}'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 94</span> </span><span class="WHIT">	    		</span><span class="STRN">'&lt;div class="article _toggleView">'</span><span class="PUNC">,</span><span class="WHIT">                        </span><span class="WHIT">
<span class='line'> 95</span> </span><span class="WHIT">		    		</span><span class="STRN">'&lt;div class="thmb">&lt;em>&lt;img src="{=data.thumbnail}" onerror="oUtil.noImage(this, 225, 310);">&lt;/em>&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 96</span> </span><span class="WHIT">		            </span><span class="STRN">'{if data.purchaseType == "not"}'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 97</span> </span><span class="WHIT">		            	</span><span class="STRN">'&lt;div class="free _toggleTarget">&lt;a href="/viewer/index.nhn?id={=data.pageId}" class="_nclicks(htp.viewtop,{=data.pressCd},{=idx+1})">&lt;span>1면 무료보기&lt;/span>&lt;/a>&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 98</span> </span><span class="WHIT">		            </span><span class="STRN">'{else}'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 99</span> </span><span class="WHIT">		    			</span><span class="STRN">'&lt;div class="paper _toggleTarget">&lt;a href="/viewer/index.nhn?id={=data.pageId}" class="_nclicks(htp.viewall,{=data.pressCd},{=idx+1})">&lt;span>지면보기&lt;/span>&lt;/a>&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>100</span> </span><span class="WHIT">		    		</span><span class="STRN">'{/if}'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>101</span> </span><span class="WHIT">	            </span><span class="STRN">'&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>102</span> </span><span class="WHIT">	            </span><span class="STRN">'{if data.newYn == "Y"}'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>103</span> </span><span class="WHIT">	            	</span><span class="STRN">'&lt;div class="new">&lt;span>NEW!&lt;/span>&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>104</span> </span><span class="WHIT">	            </span><span class="STRN">'{/if}'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>105</span> </span><span class="WHIT">	            </span><span class="STRN">'{if data.purchaseType == "period"}'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>106</span> </span><span class="WHIT">	            	</span><span class="STRN">'&lt;div class="ico_ing">&lt;span>구독중&lt;/span>&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>107</span> </span><span class="WHIT">	            </span><span class="STRN">'{elseif data.purchaseType == "volume"}'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>108</span> </span><span class="WHIT">	            	</span><span class="STRN">'&lt;div class="btn">'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>109</span> </span><span class="WHIT">	            		</span><span class="STRN">'&lt;a href="#" class="subscribe _purchasePeriod({=data.pressCd})">&lt;span>구독&lt;/span>&lt;/a>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>110</span> </span><span class="WHIT">	            	</span><span class="STRN">'&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>111</span> </span><span class="WHIT">				</span><span class="STRN">'{else}'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>112</span> </span><span class="WHIT">					</span><span class="STRN">'&lt;div class="ico_free">&lt;span>1면 무료&lt;/span>&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>113</span> </span><span class="WHIT">            		</span><span class="STRN">'&lt;div class="btn">'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>114</span> </span><span class="WHIT">            			</span><span class="STRN">'&lt;a href="#" class="day _purchaseVolume({=data.volumeId}) _nclicks_async(htp.buyday,{=data.pressCd},{=idx+1})">&lt;span>1일자 구매&lt;/span>&lt;/a>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>115</span> </span><span class="WHIT">            			</span><span class="STRN">'&lt;a href="#" class="subscribe _purchasePeriod({=data.pressCd}) _nclicks_async(htp.subscribe,{=data.pressCd},{=idx+1})">&lt;span>구독&lt;/span>&lt;/a>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>116</span> </span><span class="WHIT">            		</span><span class="STRN">'&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>117</span> </span><span class="WHIT">				</span><span class="STRN">'{/if}'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>118</span> </span><span class="WHIT">            </span><span class="STRN">'{/if}'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>119</span> </span><span class="WHIT">            </span><span class="STRN">'&lt;div class="mask">&lt;span>&lt;/span>&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>120</span> </span><span class="WHIT">        </span><span class="STRN">'&lt;/li>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>121</span> </span><span class="WHIT">        </span><span class="STRN">'{/for}'</span><span class="WHIT">
<span class='line'>122</span> </span><span class="WHIT">    </span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">join</span><span class="PUNC">(</span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>123</span> </span><span class="WHIT">    </span><span class="WHIT">
<span class='line'>124</span> </span><span class="WHIT">    </span><span class="STRN">"LISTBYSECTION"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="WHIT">
<span class='line'>125</span> </span><span class="WHIT">        </span><span class="STRN">'{for idx:data in aData}'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>126</span> </span><span class="WHIT">        </span><span class="STRN">'&lt;li>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>127</span> </span><span class="WHIT">	    	</span><span class="STRN">'&lt;p>&lt;strong>&lt;a class="_nclicks(htm.title,{=data.pageId},{=idx+1})" href="/viewer/index.nhn?id={=data.pageId}" title="{=data.headlineArticle.title}">{=data.headlineArticle.title}&lt;/a>&lt;/strong>&lt;span>&lt;em>{=data.pressNm}&lt;/em>{js oUtil.changePublDateFormat(=data.publDate, ".")} &lt;span class="bar">|&lt;/span> {=data.pageNo}면&lt;/span>&lt;/p>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>128</span> </span><span class="WHIT">	        </span><span class="STRN">'&lt;div class="article _toggleView">'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>129</span> </span><span class="WHIT">	       		</span><span class="STRN">'&lt;div class="thmb">&lt;div>&lt;span>&lt;a href="#">&lt;img src="{=data.thumbnail}" onerror="oUtil.noImage(this, 181, 247);">&lt;/a>&lt;/span>&lt;/div>&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>130</span> </span><span class="WHIT">	            </span><span class="STRN">'&lt;div class="dec" style="display:none">'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>131</span> </span><span class="WHIT">	                </span><span class="STRN">'&lt;a class="_nclicks(htm.content,{=data.pageId},{=idx+1})" href="/viewer/index.nhn?id={=data.pageId}">{js $S(=data.headlineArticle.summary).escapeHTML()}&lt;/a>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>132</span> </span><span class="WHIT">	                </span><span class="STRN">'&lt;div class="paper_view">&lt;a class="_nclicks(htm.view,{=data.pageId},{=idx+1})" href="/viewer/index.nhn?id={=data.pageId}">&lt;span>지면보기&lt;/span>&lt;/a>&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>133</span> </span><span class="WHIT">	            </span><span class="STRN">'&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>134</span> </span><span class="WHIT">	        </span><span class="STRN">'&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>135</span> </span><span class="WHIT">	    </span><span class="STRN">'&lt;/li>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>136</span> </span><span class="WHIT">	    </span><span class="STRN">'{/for}'</span><span class="WHIT">
<span class='line'>137</span> </span><span class="WHIT">    </span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">join</span><span class="PUNC">(</span><span class="STRN">""</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>138</span> </span><span class="WHIT">    </span><span class="WHIT">
<span class='line'>139</span> </span><span class="WHIT">    </span><span class="STRN">"LISTBYHOTNEWS"</span><span class="WHIT"> </span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">[</span><span class="WHIT">
<span class='line'>140</span> </span><span class="WHIT">        </span><span class="STRN">'{for idx:data in aData}'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>141</span> </span><span class="WHIT">        </span><span class="STRN">'&lt;li>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>142</span> </span><span class="WHIT">        	</span><span class="STRN">'&lt;p>&lt;strong>&lt;a class="_nclicks(hht.title,{=data.articleId},{=idx+1})" href="/viewer/index.nhn?id={=data.articleId}" title="{js $S(=data.title).stripTags()}">{=data.title}&lt;/a>&lt;/strong>&lt;span>&lt;em>{=data.pressNm}&lt;/em>{js oUtil.changePublDateFormat(=data.publDate, ".")} &lt;span class="bar">|&lt;/span> {=data.pageNo}면&lt;/span>&lt;/p>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>143</span> </span><span class="WHIT">	        </span><span class="STRN">'&lt;div class="article _toggleView">'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>144</span> </span><span class="WHIT">	       		</span><span class="STRN">'&lt;div class="thmb">&lt;div>&lt;span>&lt;a href="#">&lt;img src="{=data.thumbnail}" onerror="oUtil.noImage(this, 181, 247);">&lt;/a>&lt;/span>&lt;/div>&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>145</span> </span><span class="WHIT">	            </span><span class="STRN">'&lt;div class="dec" style="display:none">'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>146</span> </span><span class="WHIT">	                </span><span class="STRN">'&lt;a class="_nclicks(hht.content,{=data.articleId},{=idx+1})" href="/viewer/index.nhn?id={=data.articleId}">{=data.summary}&lt;/a>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>147</span> </span><span class="WHIT">	                </span><span class="STRN">'&lt;div class="article_view">&lt;a class="_nclicks(hht.view,{=data.articleId},{=idx+1})" href="/viewer/index.nhn?id={=data.articleId}">&lt;span>지면보기&lt;/span>&lt;/a>&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>148</span> </span><span class="WHIT">	            </span><span class="STRN">'&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>149</span> </span><span class="WHIT">	        </span><span class="STRN">'&lt;/div>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>150</span> </span><span class="WHIT">        </span><span class="STRN">'&lt;/li>'</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>151</span> </span><span class="WHIT">	    </span><span class="STRN">'{/for}'</span><span class="WHIT">
<span class='line'>152</span> </span><span class="WHIT">    </span><span class="PUNC">]</span><span class="PUNC">.</span><span class="NAME">join</span><span class="PUNC">(</span><span class="STRN">""</span><span class="PUNC">)</span><span class="WHIT">
<span class='line'>153</span> </span><span class="PUNC">}</span><span class="PUNC">;</span></pre></body></html>